﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;

namespace SharpMedia
{
    public class VistaControl
    {
        [DllImport("dwmapi.dll", PreserveSig = false)]
        public static extern bool DwmIsCompositionEnabled();

        [DllImport("dwmapi.dll", PreserveSig = false)]
        public static extern int DwmEnableComposition(uint uCompositeAction);


        public const uint DWM_EC_ENABLECOMPOSITION = 1;
        public const uint DWM_EC_DISABLECOMPOSITION = 0;

    }
}
